package com.teejdeej.spectator;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class EntryPoint
{
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		Scanner t_input = new Scanner(new InputStreamReader(System.in));
		String t_ip = t_input.next();
		Socket t_connection = null;

		try
		{
			t_connection = new Socket(t_ip, 14800);
		}
		catch (UnknownHostException e)
		{
			e.printStackTrace();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
		
		BufferedReader t_socketReader = null;
		
		try
		{
			t_socketReader = new BufferedReader(new InputStreamReader(t_connection.getInputStream()));
		}
		catch (IOException e) 
		{
			e.printStackTrace();
		}
		
		while(true)
		{
			try
			{
				System.out.print(t_socketReader.readLine());
			}
			catch (IOException e)
			{
				e.printStackTrace();
			}
		}
	}

}
